#!/usr/bin/env python
# encoding: utf-8


from django.urls import path, include
from app01 import views
from app01.view import account,home,project,dashboard



urlpatterns = [
    path(r'', home.index,name='home'),
	path(r'login/', account.login, name='login'),
	path(r'logout/', account.logout, name='logout'),
    path('project/<int:pk>/', views.project_detail, name='project_detail'),
    path('project/add/', views.add_project, name='add_project'),
    path('add_user/', views.add_user, name='add_user'),  # 管理员添加用户
    path('dashboard/', dashboard.dashboard,name='dashboard'),

    # 项目管理
	path(r'project/list/', project.project_list, name='project_list'),
	# /project/star/my/1
	# /project/star/join/1
	path('project/star/<str:project_type>/<int:project_id>)/', project.project_star, name='project_star'),
    
	path('project/unstar/<str:project_type>/<int:project_id>)/', project.project_unstar, name='project_unstar'),

   
]
